projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dc80c8
)
mmc: rpmb: update size format for write_counter
author
Kever Yang
<
[email protected]
>
Thu, 8 Jun 2017 01:20:04 +0000
(09:20 +0800)
committer
Jaehoon Chung
<
[email protected]
>
Wed, 19 Jul 2017 10:13:59 +0000
(19:13 +0900)
According to MMC spec, the write_counter is 4-byte length,
use 'int' instead of 'long' type for the 'long' is not 4-byte
in 64 bit CPU.
Signed-off-by: Jason Zhu <
[email protected]
>
Signed-off-by: Kever Yang <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
Signed-off-by: Jaehoon Chung <
[email protected]
>
drivers/mmc/rpmb.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/rpmb.c
b/drivers/mmc/rpmb.c
index 1c6888fc48f9370a2befa194743ea69d3be6926b..0b6b6222bdce9ae7c44a4510d01dfa18de40c22c 100644
(file)
--- a/
drivers/mmc/rpmb.c
+++ b/
drivers/mmc/rpmb.c
@@
-67,7
+67,7
@@
struct s_rpmb {
unsigned char mac[RPMB_SZ_MAC];
unsigned char data[RPMB_SZ_DATA];
unsigned char nonce[RPMB_SZ_NONCE];
- unsigned
long
write_counter;
+ unsigned
int
write_counter;
unsigned short address;
unsigned short block_count;
unsigned short result;